package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class Goods {
    @TableId(type = IdType.AUTO)
    private Integer goodsId;
    @TableField(value = "goods_inbound_id", target = ProductInbound.class)
    private Integer goodsInboundId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private ProductInbound productInbound;
    @TableField(value = "goods_product_id", target = Product.class)
    private Integer goodsProductId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Product product;
    @TableField(value = "goods_product_subcategory_id", target = ProductSubcategory.class)
    private Integer goodsProductSubcategoryId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private ProductSubcategory productSubcategory;
    private Integer goodsPrice;
    private Integer goodsMarket;
    private String goodsProduct;
    private String officialWebsite;
    private String rechargeUrl;
    private String goodsImage;
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    private String remark;
}
